package com.dhcc.test.listener;

import javax.servlet.http.HttpSessionAttributeListener;
import javax.servlet.http.HttpSessionBindingEvent;

/**
 * @description ：MyHttpSessionAttributeListener
 * HttpSessionAttributeListener：属性事件监听新增属性、删除属性、覆盖属性
 * @date ：2016年11月28日 下午8:30:56
 * @author ：WangYG
 */
public class MyHttpSessionAttributeListener implements HttpSessionAttributeListener {

    @Override
    public void attributeAdded(HttpSessionBindingEvent arg0) {
        System.out.println("HttpSessionAttributeListener_ attributeAdded : "+ arg0.getName());
    }

    @Override
    public void attributeRemoved(HttpSessionBindingEvent arg0) {
        System.out.println("HttpSessionAttributeListener_ attributeRemoved : "+ arg0.getName());
    }

    @Override
    public void attributeReplaced(HttpSessionBindingEvent arg0) {
        System.out.println("HttpSessionAttributeListener_ attributeReplaced : "+ arg0.getName());
    }

}
